

import java.io.BufferedReader;
import java.io.DataOutputStream;
import java.io.InputStreamReader;
import java.net.*;

public class TCPCliente {

	public static void main(String[] args) throws Exception{
		
		String sentence;
		String modifiedSentence;
		
		BufferedReader inFromUser = new BufferedReader(new InputStreamReader(System.in));
		
		Socket clientSocket = new Socket("10.2.4.253", 7000);
		
		DataOutputStream outToServer = new DataOutputStream(clientSocket.getOutputStream());
		
		BufferedReader inFromServer = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));
		
		sentence = inFromUser.readLine();
		
		outToServer.writeUTF(sentence + '\n');
		
		modifiedSentence = inFromServer.readLine();
		
		System.out.println("FROM USER : " + modifiedSentence);
		
		clientSocket.close();

	}

}